package per.kongtouxu.service;

import org.apache.ibatis.annotations.Param;
import per.kongtouxu.domain.pojo.Menu;
import per.kongtouxu.domain.pojo.PageBean;
import per.kongtouxu.domain.vo.V_Admin;

import java.util.List;

public interface MenuService {
    //根据adminId查询菜单
    public List<Menu> findMenuByAdminId(Integer adminId);
    //分页查询
    public PageBean<Menu> findByPage(int currentPage, int pageSize);
    //增加菜单
    public void add(Menu menu);
    //更新菜单
    public void update(Menu menu);
    //删除菜单
    public void delete(Integer menuId);
    //查询所有
    public List<Menu> findAll();
    //根据角色ID查询菜单
    public List<Menu> findMenuByRoleId(Integer roleId);
}
